#ifndef WXSIMAGE_H
#define WXSIMAGE_H

#include "../wxstool.h"
#include "../wxsitemresdata.h"


class wxsImage : public wxsTool {
  public:

    wxsImage( wxsItemResData* Data );
    wxBitmap  GetPreview( void );
    void            DoBuild( void );


  private:

    virtual void        OnBuildCreatingCode();
    virtual void        OnEnumToolProperties( long Flags );
    virtual void        OnBuildDeclarationsCode();

    void StoreXpmData( void );

    bool                            m_IsBuilt;              //!<  Only build the code once.
    wxsCoderContext     *m_Context;            //!< Coder context.
    wxArrayString           m_ImageData;     //!< The XPM data for the image.
    bool                            m_Include;            //!< Save as #include file?
    wxString                    m_Base;                //!< Base file name of source and include files.
    wxString                    m_IDir;                   //!< The absolute path to the image include directory.
    wxString                    m_RDir;                 //!< Relative directory specified for image files.
};


#endif      // WXSIMAGE_H
